# encoding  :  utf-8 _*_
# @author   :  朱清闯
# @software :  PyCharm
# time      :  2022/3/19 14:03
from django.urls import path, re_path
from . import views, account_views, question_views
from rest_framework.routers import DefaultRouter
from django.conf import settings
from django.views.static import serve


app_name = 'apis'
route = DefaultRouter()
route.register(r'SubjectViewSet', question_views.SubjectViewSet, basename='SubjectViewSet')
route.register(r'courses', question_views.CourseViewSet, basename='course')
route.register(r'questions', question_views.QuestionViewSet, basename='questions')
route.register(r'chapters', question_views.ChapterViewSet, basename='chapter')
route.register(r'sections', question_views.SectionViewSet, basename='section')
route.register(r'knowledgepoints', question_views.KnowledgePointViewSet, basename='knowledgepoint')
route.register(r'KnowledgeContainQuestions', question_views.KnowledgePointContainQuestionViewSet,
               basename='KnowledgeContainQuestions')
route.register(r'SectionContainQuestions', question_views.SectionContainQuestionViewSet,
               basename='SectionContainQuestions')
route.register(r'ChapterContainQuestionViewSet', question_views.ChapterContainQuestionViewSet,
               basename='ChapterContainQuestionViewSet')
route.register(r'ImageOfQuestion', question_views.ImageOfQuestionViewSet, basename='ImageOfQuestion')
route.register(r'ExaminationPaperViewSet', question_views.ExaminationPaperViewSet, basename='ExaminationPaperViewSet')
route.register(r'QuestionMultiViewSet', question_views.QuestionMultiViewSet,)
route.register(r'Docx2QuestionViewSet', question_views.Docx2QuestionViewSet,)
route.register(r'FeedbackViewSet', question_views.FeedbackViewSet, basename='FeedbackViewSet')
route.register(r'QuestionFeedbackViewSet', question_views.QuestionFeedbackViewSet, basename='QuestionFeedbackViewSet')
route.register(r'GuidePaperFeedbackViewSet', question_views.GuidePaperFeedbackViewSet, basename='GuidePaperFeedbackViewSet')
route.register(r'AccountManagerModelViewSet', account_views.AccountManagerModelViewSet,
               basename='AccountManagerModelViewSet')
route.register(r'UserVIPApplicationManagerModelViewSet', account_views.UserVIPApplicationManagerModelViewSet)
route.register(r'UserNicknameApplicationModelViewSet', account_views.UserNicknameApplicationModelViewSet)
route.register(r'GeneralPaperApplicationModelViewSet', question_views.GeneralPaperApplicationModelViewSet,
               basename='GeneralPaperApplicationModelViewSet')
route.register(r'JointPaperApplicationModelViewSet', question_views.JointPaperApplicationModelViewSet,
               basename='JointPaperApplicationModelViewSet')
route.register(r'PaperModelViewSet', question_views.PaperModelViewSet, basename='PaperModelViewSet')
route.register(r'QuestionOnlineApplicationModelViewSet', question_views.QuestionOnlineApplicationModelViewSet,
               basename='QuestionOnlineApplicationModelViewSet')
route.register(r'UserModelViewSet', account_views.UserModelViewSet, basename='UserModelViewSet')
route.register(r'GuidePaperModelViewSet', question_views.GuidePaperModelViewSet, basename='GuidePaperModelViewSet')
route.register(r'GuidePaperApplicationModelViewSet', question_views.GuidePaperApplicationModelViewSet,
               basename='GuidePaperApplicationModelViewSet')
route.register(r'Course4GuidePaperViewSet', question_views.Course4GuidePaperViewSet, basename='Course4GuidePaperViewSet')
route.register(r'NotificationModelViewSet', account_views.NotificationModelViewSet, basename='NotificationModelViewSet')
route.register(r'WithdrawLogModelViewSet', account_views.WithdrawLogModelViewSet, basename='WithdrawLogModelViewSet')
route.register(r'RechargeLogModelViewSet', account_views.RechargeLogModelViewSet, basename='RechargeLogModelViewSet')
route.register(r'SponsorModelViewSet', account_views.SponsorModelViewSet, basename='SponsorModelViewSet')
route.register(r'BankPointLogModelViewSet', account_views.BankPointLogModelViewSet, basename='BankPointLogModelViewSet')
route.register(r'ClassGradeViewSet', account_views.ClassGradeViewSet, basename='ClassGradeViewSet')
route.register(r'SeatworkViewSet', question_views.SeatworkViewSet, basename='SeatworkViewSet')
route.register(r'SetworkViewSet', question_views.SetworkViewSet, basename='SetworkViewSet')
route.register(r'WorkRecordViewSet', question_views.WorkRecordViewSet, basename='WorkRecordViewSet')

route.register(r'AnswerPaperOfUserModelViewSet', question_views.AnswerPaperOfUserModelViewSet,
               basename='AnswerPaperOfUserModelViewSet')
route.register(r'BulletinModelViewSet', question_views.BulletinModelViewSet, basename='BulletinModelViewSet')
route.register(r'SwiperImageModelViewSet', question_views.SwiperImageModelViewSet, basename='SwiperImageModelViewSet')
route.register(r'CategoryModelViewSet', question_views.CategoryModelViewSet, basename='CategoryModelViewSet')
route.register(r'BookModelViewSet', question_views.BookModelViewSet, basename='BookModelViewSet')
route.register(r'PermitExplainPaperOfUserModelViewSet', question_views.PermitExplainPaperOfUserModelViewSet,
               basename='PermitExplainPaperOfUserModelViewSet')
route.register(r'UserDoQuestionLogModelViewSet', question_views.UserDoQuestionLogModelViewSet,
               basename='UserDoQuestionLogModelViewSet')
route.register(r'VideoModelViewSet', question_views.VideoModelViewSet, basename='VideoModelViewSet')
route.register(r'TagModelViewSet', question_views.TagModelViewSet, basename='TagModelViewSet')
route.register(r'QuestionPrivateModelViewSet', question_views.QuestionPrivateModelViewSet,
               basename='QuestionPrivateModelViewSet')
route.register(r'NodeModelViewSet', question_views.NodeModelViewSet, basename='NodeModelViewSet')
route.register(r'NodeCooperationViewSet', question_views.NodeCooperationViewSet, basename='NodeCooperationViewSet')
route.register(r'QuestionPrivateOnlineApplicationModelViewSet', question_views.QuestionPrivateOnlineApplicationModelViewSet,
               basename='QuestionPrivateOnlineApplicationModelViewSet')

urlpatterns = [
    path('sendCaptcha/', account_views.SendCaptcha.as_view(), name='sendCaptcha'),
    path('VerifyCaptchaCode/', account_views.VerifyCaptchaCodeView.as_view(), name='VerifyCaptchaCode'),
    path('SendCodeView/', account_views.SendCodeView.as_view(), name='SendCodeView'),
    path('WXSendCodeView/', account_views.WXSendCodeView.as_view(), name='WXSendCodeView'),
    path('RegisterView/', account_views.RegisterView.as_view(), name='RegisterView'),
    path('CaptchaPicture/', account_views.CaptchaPicture.as_view(), name='CaptchaPicture'),
    path('login/', account_views.LoginView.as_view(), name='login'),
    path('WXLoginView/', account_views.WXLoginView.as_view(), name='WXLoginView'),
    path('TestRidesView/', views.TestRidesView().as_view(), name='TestRidesView'),
    path('uploadImage/', question_views.UploadImageView().as_view(), name='UploadImageView'),
    path('uploadFileServer/', question_views.UploadFileView().as_view(), name='UploadFileServer'),
    path('uploadFileTempServer/', question_views.UploadFileTempView().as_view(), name='uploadFileTempServer'),
    path('Pdf2FileAPIView/', question_views.Pdf2FileAPIView().as_view(), name='Pdf2FileAPIView'),
    path('uploadPaperFileServer/', question_views.UploadPaperFileServer().as_view(), name='UploadPaperFileServer'),
    path('VerifyToken/', question_views.VerifyToken().as_view(), name='VerifyToken'),
    path('VerifyPaperName/', question_views.VerifyPaperName().as_view(), name='VerifyPaperName'),
    path('GeneratePaper2Database/', question_views.GeneratePaper2Database().as_view(), name='VerifyPaperName'),
    path('QuestionPublicAndOnlineApiView/', question_views.QuestionPublicAndOnlineApiView().as_view(),
         name='QuestionPublicAndOnlineApiView'),
    path('QuestionList2DocxFile/', question_views.QuestionList2DocxFile().as_view(), name='QuestionList2DocxFile'),
    path('CaptchaPictureWithClientCode/', account_views.CaptchaPictureWithClientCode().as_view(), name='CaptchaPictureWithClientCode'),
    path('CheckCaptchaCode/', account_views.CheckCaptchaCode().as_view(), name='CheckCaptchaCode'),
    path('CheckPhoneUsable/', account_views.CheckPhoneUsable().as_view(), name='CheckPhoneUsable'),
    path('CheckPhoneCode/', account_views.CheckPhoneCode().as_view(), name='CheckPhoneCode'),
    path('GetPaperMenuByDateAndGrade/', question_views.GetPaperMenuByDateAndGrade().as_view(), name='GetPaperMenuByDateAndGrade'),
    path('GetQuestionsByPaper/', question_views.GetQuestionsByPaper().as_view(), name='GetQuestionsByPaper'),
    path('PersistenceManyQuestions2DatabaseAPIView/', question_views.PersistenceManyQuestions2DatabaseAPIView().as_view(),
         name='PersistenceManyQuestions2DatabaseAPIView'),
    path('UserFavoriteQuestionAPIView/', question_views.UserFavoriteQuestionAPIView().as_view(),
         name='UserFavoriteQuestionAPIView'),
    path('GetAllFavoriteQuestionsAPIView/', question_views.GetAllFavoriteQuestionsAPIView().as_view(),
         name='GetAllFavoriteQuestionsAPIView'),
    path('GetAllFavoriteQuestionsByPageAPIView/', question_views.GetAllFavoriteQuestionsByPageAPIView().as_view(),
         name='GetAllFavoriteQuestionsByPageAPIView'),
    path('PaperFormatDownLoadView/', question_views.PaperFormatDownLoadView().as_view(),
         name='PaperFormatDownLoadView'),
    path('CheckRealNameUsableAPIView/', account_views.CheckRealNameUsableAPIView().as_view(),
         name='CheckRealNameUsableAPIView'),
    path('HelloWorldApiView/', question_views.HelloWorldApiView().as_view(), name='HelloWorldApiView'),
    path('SendPhoneCodeView/', account_views.SendPhoneCodeView().as_view(), name='SendPhoneCodeView'),
    path('Pdf2DocxAPIView/', question_views.Pdf2DocxAPIView().as_view(), name='Pdf2DocxAPIView'),
    path('ImageOcrAPIView/', question_views.ImageOcrAPIView().as_view(), name='ImageOcrAPIView'),
    path('UploadGuidePaperFileServer/', question_views.UploadGuidePaperFileServer().as_view(), name='UploadGuidePaperFileServer'),
    path('FaceInspectorAPIView/', question_views.FaceInspectorAPIView().as_view(), name='FaceInspectorAPIView'),
    path('ChatCompletionAPIView/', question_views.ChatCompletionAPIView().as_view(), name='ChatCompletionAPIView'),
    path('GetKnowledgepointBySubjectApiView/', question_views.GetKnowledgepointBySubjectApiView().as_view(), name='GetKnowledgepointBySubjectApiView'),
    path('PaymentAmountWithDownloadQuestionApiView/', question_views.PaymentAmountWithDownloadQuestionApiView().as_view(),
         name='PaymentAmountWithDownloadQuestionApiView'),
    path('PaymentAmountWithDownloadPaperApiView/', question_views.PaymentAmountWithDownloadPaperApiView().as_view(),
         name='PaymentAmountWithDownloadPaperApiView'),
    path('AnswerPaperOfUserAPIView/', question_views.AnswerPaperOfUserAPIView().as_view(), name='AnswerPaperOfUserAPIView'),
    path('DailySignatureAPIView/', account_views.DailySignatureAPIView().as_view(), name='DailySignatureAPIView'),
    path('QINIUTokenAPIView/', question_views.QINIUTokenAPIView().as_view(), name='QINIUTokenAPIView'),
    path('PxRSZuASkZ.txt/', question_views.QrCodeVerifyAPIView().as_view(), name='QrCodeVerifyAPIView'),
    re_path(r'^static/(?P<path>.*)$', serve, {'document_root': settings.STATIC_ROOT}, name='static'),

]

urlpatterns += route.urls
